package com.dreamdance.queerball;

import android.content.Context;
import android.view.MotionEvent;
import net.ds0101.framework.android.neox.main.NXDirector;
import net.ds0101.framework.android.neox.main.NXScene;
import net.ds0101.framework.android.neox.util.NXResourceConverter;

public class QueerBallMenu extends NXScene {
	NXScene mGameScene;

	public QueerBallMenu(Context context) {
		super(context);
		((NXDirector)context).background(
				NXResourceConverter.getBitmapFromResource(context, R.drawable.bkgrd));
	}

	@Override
	protected void update(int dt) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onScreenSizeChanged(int newWidth, int newHeight) {
		// TODO Auto-generated method stub

	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		if (event.getAction() == MotionEvent.ACTION_UP) {
			if (null == mGameScene) {
				mGameScene = new QueerBallGameScene(getContext());
			}
			((NXDirector)getContext()).pushScene(mGameScene);
		}
		return true;
	}
}
